import measure from "./measure";
import marker from "./marker";
import draw from "./draw";
import controller from "./controller";
import cluster from './clusterMarker'
import convertor from 'chncrs'
import switchLayer from './switchLayer'
import {
  showBDBase,
  showBDSatellite,
  showBDTraffic,
  showGDBase,
  showGDSatellite,
  showGDTraffic
} from './layerConvert'
import * as maptalks from "maptalks";
import {DomUtil, Label, ui} from "maptalks";

const CtMapUtils = {
  measureUtil: measure,
  markerUtil: marker,
  clusterUtil: cluster,
  drawUtil: draw,
  controllerUtil: controller,
  translateXYTool: convertor,
  switchLayerUtil: switchLayer,
  label: Label,
  ui: ui,
  DomUtil: DomUtil,
  maptalks: maptalks,
  layerSwitch: {
    showGDBaseLayer:       showGDBase,
    showBDBaseLayer:       showBDBase,
    showBDSatelliteLayer:  showBDSatellite,
    showBDTrafficLayer:    showBDTraffic,
    showGDSatelliteLayer:  showGDSatellite,
    showGDTrafficLayer:    showGDTraffic,
  }
}
export default CtMapUtils
